#! /usr/bin/env python
import socket
sk = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sk.settimeout(1)
try:
    sk.connect(('10.1.9.22',7086))
    print('OK!')
except Exception:
    print('Fail!')
sk.close()